/**
 * 
 */
package myth.cc.loc;

/**
 * @author Biao Zhang
 * @date 01/09/2007
 * @version 0.1
 */
public interface LocCount {
	/**
	 * Test if it reach the end of the file
	 * @return False if not else true
	 */
	public boolean hasNext();
	
	/**
	 * Get the next line
	 * @return The next line
	 */
	public String getNext();
	
	/**
	 * Get all line in a string array
	 * @return The array contains all the lines.
	 */
	public String[] getLines();
	
	/**
	 * Reverse the pointer to the source code to the begin
	 */
	public void reset();
	
	/**
	 * Get the current line number
	 * @return The current line number
	 */
	public int getCurrentLineNum();
}
